package zhh.tangbao.system.constant;

/**
 * @author 粥灰灰
 * @created 2022/11/4
 * @version 1.0
 * @Description 通用的固定常量
 */
public class CommonConstant {
    /** Redis中key后面加上:表示新建一个文件夹，为了兼容Redis的key，因此加上:号*/
    public static final String REDIS_USER = "user:";

    public static final String REDIS_USER_PATTERN = "user*";

    public static final String REDIS_BAN_USER = "ban_user:";
    public static final String REDIS_WECHAT_USER = "wechat:";

    public static final String REDIS_WECHAT_CART = "cart:";

    public static final String REDIS_MACHINE = "machine:";

    /** redis中存放账号信息的key */
    public static final String USER = "user";

    /** redis中存放当前登录用户的token */
    public static final String CURRENT_TOKEN = "current";

    public static final String TOKEN = "token";

    public static final String TOKEN_KEY = "key";


    public static final String ROLE_TYPE_ADMIN = "admin";

    public static final String ROLE_TYPE_USER = "user";

}
